home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / embedded / mcu / cluster.arc / AS_C.CHG next >
Text File  |  1989-05-24  |  3KB  |  81 lines

  1. FILE:          as_c.chg     
  2. PURPOSE:       To document the changes made to AS.C to allow a semicolon to be
  3.                used as a comment character and to display number of assembly
  4.                errors found during the assembly.
  5.  
  6. DESCRIPTION:
  7.  
  8.   Included in the archive file from which this file was extracted is the file 
  9. AS.C.  This file has been modified from the original source downloaded from the 
  10. BBS.  It has changes in 3 locations so that a semicolon will be allowed to 
  11. begin a comment line and also allows comments begun with a semicolon to begin 
  12. in any column. 
  13.   I made these changes so that the ASxx.EXE assemblers will be able to assemble 
  14. files written for other assemblers without modifying the comment lines.  This 
  15. was also done because the editor that I use has the capability to automatically 
  16. sidebar wrap my comments.  This editor uses semicolons to begin the comment 
  17. column.
  18.   The AS.C file was also modified to display the number of errors found during 
  19. the assembly.  This makes it easier to know if there were any errors when a 
  20. listing is being made.  All that you need to do is go to the bottom of the 
  21. listing and find the line that tells how many errors there were.  Most of the 
  22. programs that I write are over 2000 lines long.  It is very tedious to search 
  23. through the listing for error lines.
  24.  
  25.   See also the bug fix made to file FFWD.C described in the file FFWD_C.CHG, 
  26. and the change to OUTPUT.C that modifies the cross reference output and symbol 
  27. table output described in file OUTPUT_C.CHG.
  28.  
  29.   If you have any questions for me, or if you would like me to upload the 
  30. complete source and executable files that include this change, I can be reached 
  31. at 801-778-4410.  Ask for Bruce Olney.
  32.  
  33.  
  34. DESCRIPTION OF CHANGES:
  35.  
  36.   Line 83 was changed from this:
  37.  
  38.     exit(Err_count);
  39.  
  40.   To this:
  41.  
  42.      printf("\n\nNumber of errors %d\n",Err_count);
  43.     exit(Err_count);
  44.  
  45.  
  46.   Line 162 was changed from this:
  47.  
  48.      if((*ptrfrm == '*') || (*ptrfrm == '\n'))
  49.        return(0);    /* a comment line */
  50.  
  51.   To this:
  52.  
  53.      if((*ptrfrm == '*') || (*ptrfrm == '\n') || (*ptrfrm == ';'))
  54.        return(0);    /* a comment line */
  55.   
  56.  
  57.  
  58.  
  59.   Line 173 was changed from this:
  60.  
  61.         while( delim(*ptrfrm) == NO)
  62.           *ptrto++ = mapdn(*ptrfrm++);
  63.  
  64.   To this:
  65.  
  66.        if(*ptrfrm != ';')
  67.         while( delim(*ptrfrm) == NO)
  68.            *ptrto++ = mapdn(*ptrfrm++);
  69.  
  70.  
  71.  
  72.   Line 180 was changed from this:
  73.  
  74.        while( *ptrfrm != NEWLINE )
  75.          *ptrto++ = *ptrfrm++;
  76.  
  77.   To this:     
  78.        if(*ptrfrm != ';')
  79.          while( *ptrfrm != NEWLINE )
  80.            *ptrto++ = *ptrfrm++;
  81.